package im.notify.server;

import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.keepalive.KeepAliveMessageFactory;

public class KeepAliveMessageFactoryImpl implements KeepAliveMessageFactory{

	public Object getRequest(IoSession arg0) {
		return "0";
	}

	public Object getResponse(IoSession arg0, Object arg1) {
		return null;
	}

	public boolean isRequest(IoSession arg0, Object arg1) {
		return false;
	}

	public boolean isResponse(IoSession arg0, Object arg1) {
		
		return "1".equals(arg1);
	}

}
